package org.homework;

/**
 * 商品类
 */
public class Product {
    /**
     * 商品名称
     */
    String name;
    /**
     * 商品价格
     */
    Double price;
    /**
     * 商品数量
     */
    Integer quantity;
    /**
     * 商品类型
     */
    String type;
    /**
     * 商品描述
     */
    String description;

    public Product() {
    }

    public Product(String name, Double price, Integer quantity, String type, String description) {
        this.name = name;
        this.price = price;
        this.quantity = quantity;
        this.type = type;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
